package com.scalar.chiptrack.sales;

import com.scalar.chiptrack.utils.StringUtils;

import java.io.Serializable;

/**
 * Date: Apr 3, 2004
 * Time: 3:51:26 PM
 * To change this template use Options | File Templates.
 */
public class SubTotal implements Serializable
{
    private String subTotalQty        = null;
    private String subTotalAmt        = null;
    private String subTotalShippedQty = null; //Added by varma to show Shipped Qty total to Airgo.
    private String subTotalProposedQty = null;

    public SubTotal()
    {
    }

    public String getSubTotalQty ()
    {
        return subTotalQty;
    }

    public void setSubTotalQty ( String subTotalQty )
    {
        this.subTotalQty = subTotalQty;
    }

    public String getSubTotalQtyFormatted() {
        try {
            return StringUtils.formatUnits( Integer.parseInt(subTotalQty) );
        } catch (NumberFormatException e) {
            return subTotalQty;
        }
    }
    public String getSubTotalAmt ()
    {
        return subTotalAmt;
    }

    public void setSubTotalAmt ( String subTotalAmt )
    {
        this.subTotalAmt = subTotalAmt;
    }
    //added by varma on 26th oct 2004 to show the shipped qty total for Airgo.
    public String getSubTotalShippedQty ()
    {
        return subTotalShippedQty;
    }

    public void setSubTotalShippedQty ( String subTotalShippedQty )
    {
        this.subTotalShippedQty = subTotalShippedQty;
    }

    public String getSubTotalProposedQty ()
    {
        return subTotalProposedQty;
    }

    public void setSubTotalProposedQty ( String subTotalProposedQty )
    {
        this.subTotalProposedQty = subTotalProposedQty;
    }
}
